<?php
Yii::import('zii.widgets.CPortlet');
class SideBar extends CPortlet {

	public $do = 'index';
	public $menu = 'site';

	public function init() {
		parent::init();
	}

	protected function renderContent() {
		$this->menu = Yii::app()->controller->id;
		if($this->menu) {
			$this->do = Yii::app()->controller->action->id;
		}
		$this->render('sideBar', array(
						'menu' => $this->menu,
						'do' => $this->do
				));
	}
}